<template>
  <el-dialog
    title="错误日志"
    :visible.sync="dialogVisible"
    width="50%"
    :before-close="handleClose">
    <el-input type="textarea" :rows="10" v-model="errorMsg"/>
    <span slot="footer" class="dialog-footer">
    <el-button @click="dialogVisible = false">关 闭</el-button>
  </span>
  </el-dialog>
</template>

<script>
export default {
  name: 'ErrorDialog',
  data() {
    return {
      dialogVisible: false,
      errorMsg: ''
    }
  },
  methods: {
    init(row) {
      this.errorMsg = row.exception
    },
    handleClose() {
      this.$parent.ErrorDialogVisible = false
    }
  }
}
</script>

<style scoped>

</style>
